<?php use_helper('Text') ?>
<?php use_helper('Slug') ?>
<div align="right"><a class="menu_action" href="<?php echo url_for('@add_version?id='.$id_art); ?>"><?php echo image_tag("Icons/menu_action/new.png", array("width" => 13,"height" => 13, "alt" => "icon")) ?> Ajouter une version</a></div>
<div class="title_section">
Choix d'une option.
</div>
<div class="section">


<span style="font-size:15px;margin-bottom: 15px" class="block">Cet article disponible en plusieur version choissisez celle qui vous correspond: <a class="menu_action" href="<?php echo url_for('@add_version?id='.$id_art); ?>">(ajouter une nouvelle version)</a></span>

<div class="nav_barre"><?php echo get_component('headers', 'pager', array('module' => "article", 'action' => "options", 'pager' => $pager,"optNbTotal" => false,"optImgNextPrev" => false)); ?></div>
<?php foreach($options as $option):?>
		<a class="option_link" href="<?php echo url_for('@show_article?title='.sluggify($option["Articles"]["title"]).'&idasso='.$option["idassoplatform"]); ?>">
        
          <ul class="option elem_on_section" style="margin-bottom:20px">
          	<li class="inline">
				<?php echo image_tag("Platform/Size80/".$option["Platform"]["picture"].".png", array("width" => 40,"height" => 40, "alt" => "pict")) ?>
            </li>
            <?php if($option["Platform_4"] != NULL):?>
            <li class="inline">
				<?php echo image_tag("Platform/Size80/".$option["Platform_4"]["picture"].".png", array("width" => 40,"height" => 40, "alt" => "pict")) ?>
            </li>
         	<?php endif;?>
            <li class="inline">
                <ul class="no_margin">
                    <?php echo $option["Platform"]["real_name"] ?>
                    <?php if(count($option["Plateformversiongroup"]) > 0):?>
					<?php foreach($option["Plateformversiongroup"] as $groupe):?>
                        <?php echo $groupe["Plateformversion"]["version"] ?>
                    <?php endforeach;
					endif;
					?>
                    </li>
                </ul>
            </li>
            <?php if($option["Platform_4"] != NULL):?>
            
         	<li class="inline">
            	<ul class="no_margin">
                    et <?php echo $option["Platform_4"]["real_name"] ?>
                    <?php if(count($option["Plateformversiongroup_5"]) > 0):?>
                    <?php foreach($option["Plateformversiongroup_5"] as $groupe):?>
                        <?php echo $groupe["Plateformversion"]["version"] ?>
                    <?php endforeach;
					endif;
					?>
                </ul>
            </li>
            <?php endif;?>
          </ul> 
    </a>
    <?php //echo var_dump($option["Plateformversiongroup_5"]) ?>
<?php endforeach;?>
<div class="nav_barre"><?php echo get_component('headers', 'pager', array('module' => "article", 'options' => "index","params" => "idarticle=".$option["id_article"], 'pager' => $pager,"optNbTotal" => false)); ?></div>

